package com.zero.storage.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author zero
 * @ClassName StorageServiceApi
 * @Description
 * @Date 2025/5/15 13:37
 */
@FeignClient(name = "storage-service",path = "storage")
public interface StorageServiceApi {
    @RequestMapping("deduct/{commodityCode}/{count}")
    void deduct(@PathVariable("commodityCode") String commodityCode, @PathVariable( "count") int count);

    @RequestMapping ("refund/{commodityCode}/{count}")
    void refund(@PathVariable("commodityCode") String commodityCode, @PathVariable( "count") int count);
}
